<template>
  <view class="content">
    <Toast id="com-a-toast" />
    <button @click="request">组件函数式</button>
  </view>
</template>

<script>
import { getList } from "@/service/api/goods";
import Toast from "../../../components/Toast";
export default {
  components: {
    Toast,
  },
  data() {
    return {
      show: true,
    };
  },
  onLoad() {},
  methods: {
    async request() {
      this.$emit("request");
    },
  },
};
</script>

<style>
.content {
  justify-content: center;
  background-color: #8f8f94;
  min-height: 100vh;
}

.logo {
  height: 200rpx;
  width: 200rpx;
  margin: 200rpx auto 50rpx auto;
}

.text-area {
  display: flex;
  justify-content: center;
}

.title {
  font-size: 36rpx;
  color: #8f8f94;
}
</style>
